package com.domino.shared;

import java.io.Serializable;

import com.domino.shared.model.Color;
import com.domino.shared.session.SessionId;

public class JoinResponse implements Serializable {

	private SessionId sessionId;
	private Player playerBlack;
	private Player playerWhite;
	private Color color;
	private int size;
	
	public JoinResponse() {
	}
	public JoinResponse(SessionId sessionId, Player playerBlack, Player playerWhite, Color color, int size) {
		this.playerBlack = playerBlack;
		this.playerWhite = playerWhite;
		this.color = color;
		this.sessionId = sessionId;
		this.size = size;
	}
	
	public int getSize() {
		return size;
	}
	public Player getPlayerBlack() {
		return playerBlack;
	}
	public Player getPlayerWhite() {
		return playerWhite;
	}
	public Color getColor() {
		return color;
	}
	public SessionId getSessionId() {
		return sessionId;
	}
	@Override
	public String toString() {
		return "JoinResponse [sessionId=" + sessionId + ", playerBlack="
				+ playerBlack + ", playerWhite=" + playerWhite + ", color="
				+ color + ", size=" + size + "]";
	}
	

}
